|
|
| Posizione nel menu |
|---|
| Modifica → Aggiorna |
| Ambiente |
| Tutti |
| Avvio veloce |
| F5 |
| Introdotto nella versione |
| - |
| Vedere anche |
| Nessuno |
Il comando Aggiorna ricalcola il documento attivo. Il comando è disabilitato se il documento non richiede un nuovo calcolo.
Vedere anche: Autogenerated API documentation e Script di base per FreeCAD.
Per ricalcolare un documento, utilizzare il metodo recompute dell'oggetto documento.
import FreeCAD
doc = FreeCAD.ActiveDocument
doc.recompute()
The same method is available for objects in the document:
import FreeCAD
doc = FreeCAD.ActiveDocument
for obj in doc.Objects[0:3]:
obj.recompute()
To mark an object for recomputation use the touch method of the object. The code below corresponds to forcing a recompute by selecting the document as explained in Options:
import FreeCAD
doc = FreeCAD.ActiveDocument
for obj in doc.Objects:
obj.touch()
doc.recompute()